package com.activenetwork.smlite.page.generic;

import org.openqa.selenium.WebDriver;

import com.activenetwork.smlite.page.HeaderPage;
import com.activenetwork.smlite.page.NavigateBar;
import com.activenetwork.util.EnvContext;
import com.activenetwork.util.PageLoader;


public class ModelPage implements PageObject {

	protected HeaderPage header = PageLoader.load(HeaderPage.class);
	protected NavigateBar navigateBar = PageLoader.load(NavigateBar.class);
	
	public void logout(){
		header.logout();
	}
	
	public String getLoggeredInUser(){
		return header.getLoggedInUser();
	}
	
	public String getCurrentURL(){
		// Get thread own webdriver instance
		WebDriver driver = EnvContext.webDriverTL.get(); 
		return driver.getCurrentUrl();
	}
	
	public PageObject events(){
		return navigateBar.events();
	}
	
	public PageObject reports(){
		return navigateBar.reports();
	}
	
	public PageObject administration(){
		return navigateBar.administration();
	}
	
	
	
}
